#[derive(Debug)]
struct Number {
    value: i32,
}

impl From<i32> for Number {
    fn from(item: i32) -> Self {
        return Number { value: item };
    }
}

impl From<i64> for Number {
    fn from(item: i64) -> Self {
        return Number { value: item as i32 };
    }
}

fn main() {
    println!("Form Example Hello World");
    let num = Number::from(30);
    println!("My number is {:?}", num);

    println!("Into Example Hello World");
    let int = 5i64;
    let num: Number = int.into();
    println!("My number is {:?}", num);
}
